package com.cherrypt.api.model.dataobject;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author intent
 * @date 2019/8/2 15:51
 * @about <link href='http://zzyitj.xyz/'/>
 */
@Getter
@Setter
@ToString
@TableName(value = "t_posts")
public class Post implements Serializable {

    private static final long serialVersionUID = 917894711151858499L;
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer uid;
    private Integer categoryId;
    private Integer teamId;
    private Integer pin;
    private String title;
    private String subtitle;
    private Integer hot;
    private String content;
    private String quality;

    private Integer imdbId;
    private Integer doubanId;
    private Boolean isWait;
    private Boolean isEnable;

    @TableField(fill = FieldFill.INSERT)
    private Long created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long modify;
}
